package mvc.view.controls.menu;

import javax.swing.JMenuItem;
import mvc.view.IView;

public class CMenuItem extends JMenuItem{
	private Class<IView> formClass;
	private String entityName;
	
	public void setFormClass(Class<IView> pClass){
		formClass = pClass;
	}
	
	public Class<IView> getFormClass(){
		return formClass;
	}
	
	public void setEntityName(String pEntityName){
		entityName = pEntityName;
	}
	
	public String getEntityName(){
		return entityName;
	}
	
	public CMenuItem(String pCaption, Class<IView> pFormClass, String pEntityName){
		super(pCaption);
		setEntityName(pEntityName);
		setFormClass(pFormClass);
	}
	
}
